#!/usr/bin/env python3 
# -*- coding: UTF-8 -*-

'''
测试用户故事
by lina
'''
from src.gui.story import base_story
from src.gui.action import baidu
from src.gui.action import csdn
from src.util import report

class DemoStory(base_story.BaseStory):

	def __init__(self):
		super().__init__()
		self.baidu_action = baidu.Baidu()
		self.csdn_action = csdn.Csdn()
		self.mreport = report.Report()


	'''
	进入当前页面
	by lina
	'''
	def story_one(self):
		story = 'story_one'
		
		self.baidu_action.into_csdn_by_baidu()
		self.mreport.add_excel_report(story,'into_csdn_by_baidu','通过百度搜索进入csdn')
		self.csdn_action.into_userpwd_login()
		self.mreport.add_excel_report(story,'into_userpwd_login','进入csdn登陆页')
		self.csdn_action.use_wrong_userpwd_login()
		self.mreport.add_excel_report(story,'use_wrong_userpwd_login','输入错误的用户名与密码登录csdn')







